<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> 
<%@page import="es.cea.agendatelefonica.AgendaAtributos"%>
<%@page import="es.cea.agendatelefonica.ContactoTel"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Agenda telefonica</title>
</head>
<body>
<font size="5">AGENDA</font>

<ul>
<c:forEach items="${applicationScope.contactos}" var="contacto">  
<li>${contacto.nombre} <a href ="editarContacto?id=${contacto.id}">Editar</a> &nbsp &nbsp
                       <a href ="borrarContacto?id=${contacto.id}">Borrar</a>   
</li>  
</c:forEach> 
</ul>


<form action='./nuevoContacto' method='get'>
<input type='submit' value='Nuevo contacto'>
</form>
						   

</body>
</html>






